//
//  XiangHaLifeInfo.m
//  CookDemo
//
//  Created by   on 15/9/3.
//  Copyright (c) 2015年 DTR. All rights reserved.
//

#import "XiangHaLifeInfo.h"

@implementation XiangHaLifeInfo

- (instancetype)initSetXiangHaLifeValueForKeyWithDictionary:(NSDictionary *)dictionary {
    self = [super init];
    if (self) {
//        self.LifeData =[NSMutableArray array];
//        self.imgs = [NSMutableArray array];
        self.title = [[NSString alloc]init];
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}

+ (instancetype)XiangHaLifeSetXiangHaLifeValueForKeyWithDictionary:(NSDictionary *)dictionary {
    return [[XiangHaLifeInfo alloc]initSetXiangHaLifeValueForKeyWithDictionary:dictionary];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"customer"]) {
        NSDictionary *dic = value;
        self.nickName = dic[@"nickName"];
        self.imgShow = dic[@"imgShow"];
        self.customerCode = dic[@"code"];
        self.lv = dic[@"lv"];
        self.isGourmet = dic[@"isGourmet"];
    }
}

@end
